package com.net2s.utils;

import java.math.BigInteger;

import es.yell.schema.Contract.Contract.AdsRefType;
import es.yell.schema.Contract.Contract.ContractType;
import es.yell.wsdl.ContractSrv.ContractSrvPortTypeProxy;

public class Test {
	public static void main(String [] args){
		try{
			
			/*AdsRefType ref = new AdsRefType();
		    ref.setCo_ambi_apa("MM");
		    ref.setCo_contrato("PROAC0033");
		    ref.setCo_producto("PAG");
		    BigInteger b = new BigInteger("1");
		    ref.setNu_anuncio(b);
		    */
		    es.yell.wsdl.ContractSrv.ContractSrvPortTypeProxy proxy = new ContractSrvPortTypeProxy();
		    proxy.setEndpoint("http://campesina:9080/WSBusinessData/services/ContractSrv");
		    ContractType contrato= proxy.getContractInfo("PROAC0010");
		    
		    System.out.println("--");
		}catch (Exception e){
			e.printStackTrace();
		}
	}
}
